import request from '@/utils/request'

// 管理电池接口
export function managerPowerList(offset, pageSize, mid, id, pid, status) {
  return request({
    url: '/manager/managerPowerList',
    method: 'get',
    params: {
      offset: offset,
      pageSize: pageSize,
      mid: mid,
      id: id,
      pid: pid,
      status: status,
    },
  })
}
//查找电池
export function managerPowerFindId(id) {
  return request({
    url: '/manager/managerPowerFindId',
    method: 'post',
    params: {
      id: id,
    },
  })
}
//修改电池状态
export function updatePowerState(data) {
  return request({
    url: '/manager/updatePowerState',
    method: 'post',
    data,
  })
}
//添加电池信息
export function addManagerPowers(data) {
  return request({
    url: '/manager/addManagerPower',
    method: 'post',
    data,
  })
}
